package com.orangesoft.common.vo;

import java.util.HashMap;
import java.util.Map;

/**
 * 接口应答码对应表
 * 核销接口使用数字段  2010-2099
 *
 * @author xhy
 */
public class ResponseMsg {
    /**
     * 处理成功
     */
    public static final Integer MSG_200 = 200;
    /**
     * 发生异常
     */
    public static final Integer MSG_0 = 0;
    /**
     * 请求已处理
     */
    public static final Integer MSG_1 = 1;
    /**
     * 业务处理失败
     */
    public static final Integer MSG_500 = 500;



    private static Map<Integer, String> msgs = new HashMap<Integer, String>();

    static {
        msgs.put(MSG_200, "处理成功");
        msgs.put(MSG_0, "发生异常");
        msgs.put(MSG_1, "请求已处理");

        msgs.put(MSG_500, "处理失败");

    }

    public static String getMsg(Integer code) {
        return msgs.get(code);
    }

}
